package com.share.hope.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.hope.entity.ProductsInfo;
import com.share.hope.entity.page.PageQueryVo;
import com.share.hope.entity.result.PageR;
import com.share.hope.entity.result.R;
import com.share.hope.vo.ProductsPageQueryVo;

public interface ProductsService extends IService<ProductsInfo> {

    R<String> createProduct(ProductsInfo productsInfo);

    R<String> updateProduct(ProductsInfo productsInfo);

    R<String> deleteProduct(Long productId);

    R<PageR<ProductsInfo>> pageProduct(PageQueryVo<ProductsPageQueryVo> queryVo);

    R<String> exchangeCollect(Long userId, Long productId);
}
